<?php include 'conf/base.php';?>


<?php $title = gettext("Mi Sección | Anuncios Locales")?>
<?php $descripcion = gettext("Mi Sección | Anuncios Locales")?>
<?php $keywords = gettext("Mi Sección | Anuncios Locales")?>

<?php include 'template_header_subdominios.php'?>
<?php include 'template_nav_bar_subdominios.php';?>
<?php include 'template/recurso_zebra_pagination_css.php'?>

	<div class="container">
    <div class="row">       
        <div class="col-md-9">
    <?php
        
 	   if(logged_in()){
 	   	
 	   	?>

	<h2 class="right-line"><?php echo gettext("Eliminar Anuncio")?></h2>								

	   <div id='eliminar_div'>
	
				<?php
				//chequear que no este informada ya y que sea el mismo usuario
				if (isset($_GET['publicacion_id'])){				
					$publicacion = get_valores_publicacion($_GET['publicacion_id'],array("usuario_id","titulo"));
					if ($publicacion['usuario_id'] == $_SESSION['usuario_id']){						
					echo gettext("¿Está seguro que desea eliminar el anuncio?")."
					<p><a href=".getPublicacionPath($_GET['publicacion_id']).">$publicacion[titulo]</a></p>                     
                       <input id='publicacion_id' type='hidden' value='$_GET[publicacion_id]'/>
                       <input id='eliminar_publicacion_si' type='submit' value='".gettext("SI")."' class='btn btn-ar btn-primary' />
                       <input id='eliminar_publicacion_no' type='submit' value='".gettext("NO")."' class='btn btn-ar btn-warning'/>
                       ";
					} else {
					
						echo "<div class='alert alert-danger'>
						    	<button type='button' class='close' data-dismiss='alert'>×</button>
						    	<strong>".gettext("Anuncio no encontrado")."</strong>
						    </div>";
					
					}
						
				?>	
					<br>
				</div>
         
				<?php

				} else{

					echo "<div class='alert alert-danger'>
		    	<button type='button' class='close' data-dismiss='alert'>×</button>
		    	<strong>".gettext("Anuncio no encontrado")."</strong>
		    	</div>";

				}
					?>
						    </div>
						    <?php } else {
						    	$url = get_login_url();
						    	exit('<meta http-equiv="refresh" content="0; url=' . urldecode($url) . '"/>');
						    }?>
					       </div>
					       
					        <?php include 'template_ultimos_anuncios_clasificados_slider_subdominios.php'?>	
					  
					  	</div>
					
					<?php include 'template_footer_subdominios.php'?>
					<?php include 'template_side_bar_subdominios.php';?>
					
<!-- Scripts -->
<!-- Compiled in vendors.js -->
<!--
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.cookie.js"></script>
<script src="assets/js/imagesloaded.pkgd.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/bootstrap-switch.min.js"></script>
<script src="assets/js/wow.min.js"></script>
<script src="assets/js/slidebars.min.js"></script>
<script src="assets/js/jquery.bxslider.min.js"></script>
<script src="assets/js/holder.js"></script>
<script src="assets/js/buttons.js"></script>
<script src="assets/js/jquery.mixitup.min.js"></script>
<script src="assets/js/circles.min.js"></script>
<script src="assets/js/masonry.pkgd.min.js"></script>
<script src="assets/js/jquery.matchHeight-min.js"></script>
-->

<script src="http://<?php echo DOMINIO_BASE_COMPLETO?>/js/vendors.js"></script>
<script src="http://<?php echo DOMINIO_BASE_COMPLETO?>/js/funcionesjs.js"></script>

<!-- Syntaxhighlighter -->
<script src="http://<?php echo DOMINIO_BASE_COMPLETO?>/js/syntaxhighlighter/shCore.js"></script>
<script src="http://<?php echo DOMINIO_BASE_COMPLETO?>/js/syntaxhighlighter/shBrushXml.js"></script>
<script src="http://<?php echo DOMINIO_BASE_COMPLETO?>/js/syntaxhighlighter/shBrushJScript.js"></script>

<script src="http://<?php echo DOMINIO_BASE_COMPLETO?>/js/app.js"></script>
<script src="http://<?php echo DOMINIO_BASE_COMPLETO?>/js/index.js"></script>

</body>

</html>
										